<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="utf-8">
    <title>一级代理充值数据</title>

    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <!-- <script>
      (function () {
        if (window !== window.top) {
          window.top.location.href = 'http://www.818tu.com';
        }
      })();
    </script> -->

    <!-- bootstrap & fontawesome -->








    <!-- page specific plugin styles -->
    <script src="__PUBLIC__/admin/js/jquery.min.js"></script>
    <script src="__PUBLIC__/admin/js/lodash.min.js"></script>
    <script src="__PUBLIC__/admin/js/moment.min.js"></script>
    <script src="__PUBLIC__/admin/js/zh-cn.js"></script>
    <script src="__PUBLIC__/admin/js/numeral.min.js"></script>
    <script src="__PUBLIC__/admin/js/toastr.min.js"></script>
    <script src="__PUBLIC__/admin/js/cookies.js"></script>
    <script src="__PUBLIC__/admin/js/knockout-min.js"></script>
    <script src="__PUBLIC__/admin/js/knockout.mapping.min.js"></script>
    <script src="__PUBLIC__/admin/js/bootstrap-datetimepicker.min.js"></script>
    <script src="__PUBLIC__/admin/js/jquery.validate.min.js"></script>
    <script src="__PUBLIC__/admin/js/jquery.validate.unobtrusive.min.js"></script>
    <script src="__PUBLIC__/admin/js/clipboard.min.js"></script>
    <script src="__PUBLIC__/admin/js/select2.min.js"></script>
    <script src="__PUBLIC__/admin/js/admin.js"></script>
    <script>
      moment.locale('zh-cn');
      toastr.options.positionClass = 'toast-bottom-right';
    </script>

    <!-- text fonts -->


    <!-- ace styles -->


    <!--[if lte IE 9]>
        <link rel="stylesheet" href="http://novel.818tu.com/static/assets/css/ace-part2.min.css" />
    <![endif]-->




    <!--[if lte IE 9]>
        <link rel="stylesheet" href="http://novel.818tu.com/static/css/ace-ie.min.css" />
    <![endif]-->



    <!-- inline styles related to this page -->

    <!-- ace settings handler -->
    <script src="__PUBLIC__/admin/js/ace-extra.min.js"></script>

    <!-- <script>
      var __BASEURL = "http://novel.818tu.com/";
    </script> -->

<link media="all" href="__PUBLIC__/admin/css/index04.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/glyphicons-halflings-regular.css">
<link href="__PUBLIC__/admin/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body class="no-skin">

    <!-- #section:basics/navbar.layout -->
    <include file="./Public/gong/title.html" />

    <div class="main-container" id="main-container">
      <script type="text/javascript">
        try{ace.settings.check('main-container' , 'fixed')}catch(e){}
      </script>

      <div id="sidebar" class="sidebar responsive">
          <script type="text/javascript">
            try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
          </script>

<include file="./Public/gong/list.html" />
          <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
          </div>

          <script type="text/javascript">
            try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
          </script>
      </div>

      <!-- /section:basics/sidebar -->
      <div class="main-content">

               <!--      <div id="invalid-mp-settings-hint" style="border-top: 0px none; border-left: 0px none; border-right: 0px none; margin: 0px;" class="alert alert-warning">
    <i class="fa fa-warning"></i> 您的公众号配置不完整，推广前请务必配置好公众号信息。<a    href="#">立即配置</a>
</div> -->

<!-- <script>
    $.get('/backend/settings/api_check_mp_settings?t' + new Date().getTime(), function (result) {
        if (!result.valid) {
            $('#invalid-mp-settings-hint').slideDown();
        }
    });
</script> -->
        <div class="breadcrumbs" id="breadcrumbs">
          <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
          </script>

          <ul class="breadcrumb">
            <li>
              <i class="ace-icon fa fa-home home-icon"></i>
              <a    href="__APP__/Home/Index/index.html">Home</a>
            </li>
            <li class="active">一级代理充值数据</li>
          </ul><!-- /.breadcrumb -->

          <!-- /section:basics/content.searchbox -->
        </div>

        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
          <div class="page-content-area">
            <div class="row">
              <div class="col-xs-12">
                <!-- PAGE CONTENT BEGINS -->

                <!--/span-->
                <!-- left menu ends -->



<!-- <div class="actions-bar" style="margin-bottom:20px;">

    <ul class="nav nav-pills nav-pills-sm pull-left">
        <li class="active"><a    href="__URL__/add_admin.html">添加代理</a></li>
      </ul>
</div><br /> -->



    <div class="actions-bar clearfix" style="margin-top: 15px;">
    <ul class="nav nav-pills nav-pills-sm pull-left" style="margin-top: 3px;">
        <li class="active" style="margin-right: 10px;"><a    href="__URL__/admin_change_list.html">一级代理</a></li>
        <li class="" style="margin-right: 10px;"><a    href="__URL__/admin_change_list2.html">二级代理</a> </li>

    </ul>
    </div>

<table class="table table-striped table-bordered responsive table-hover" id="dataTables-example">
    <thead>
        <tr >
            <td class="text-center">代理名称</td>
            <td class="text-center">昨日充值</td>
            <td class="text-center">本月充值</td>
            <td class="text-center">累计充值</td>
            <td class="text-center">昨日利润</td>
            <td class="text-center">昨日分成利润</td>
            <td class="text-center">本月利润</td>
            <td class="text-center">本月分成利润</td>
            <td class="text-center">总利润</td>
            <td class="text-center">总分成利润</td>
        </tr>
    </thead>
    <tbody>
        <volist name="arr" id="va">
        <tr class="odd gradeX">
            <td class="text-center">{$va.username}</td>
            <td class="text-center">{$va.yes_static}</td>
            <td class="text-center">{$va.month_static}</td>
            <td class="text-center">{$va.all_static}</td>
            <td class="text-center">{$va.yes_profit}</td>
            <td class="text-center">{$va.yes_fenprofit}</td>
            <td class="text-center">{$va.month_profit}</td>
            <td class="text-center">{$va.month_fenprofit}</td>
            <td class="text-center">{$va.all_profit}</td>
            <td class="text-center">{$va.all_fenprofit}</td>
        </tr>
        </volist>


            </tbody>
</table>


<!-- <script>
    $(function () {
       $(document).on('click', '[data-toggle="reset-password"]', function () {
            var nickname = $(this).closest('tr').find('.nickname').text();
            var id = $(this).data('id');

            Modal.confirm({
                title: '重置密码',
                message: '确定要重置 ' + nickname + ' 的密码吗?'
            }).then(function () {
                $.ajax({
                    url: '/backend/users/api_reset_password/' + id,
                    type: 'POST',
                    contentType: 'application/json'
                })
                    .then(function (result) {
                        Modal.alert({
                            title: '密码重置成功',
                            message: '<div style="margin:20px 0;font-size:18px;" class="text-center">' +
                            '<p>新密码只显示一次，请现在复制:</p>' +
                            '<div style="font-size:28px;margin:10px 0;" class="text-primary">' + result.new_password + '</div>' +
                            '</div>'
                        });
                    })
                    .fail(handleAjaxError);
            });

            return false;
       });

       $(document).on('click', '[data-toggle="deactivate-user"]', function () {
           var id = $(this).data('id');
           var nickname = $(this).closest('tr').find('.nickname').text();

           Modal.confirm({
               title: '禁止代理',
               message: '确定要禁止"' + nickname + '"吗?'
           })
           .then(function () {
               $.ajax({
                   url: '/backend/users/api_deactivate/' + id,
                   type: 'POST',
                   contentType: 'application/json'
               })
               .then(function () {
                   toastr.success('禁止成功');
                   reloadPage(1000);
               })
               .fail(handleAjaxError);
           });

           return false;
       });

       $(document).on('click', '[data-toggle="activate-user"]', function () {
            var id = $(this).data('id');
            $.ajax({
                url: '/backend/users/api_activate/' + id,
                type: 'POST',
                contentType: 'application/json'
            })
            .then(function () {
                toastr.success('激活成功');
                reloadPage(1000);
            })
            .fail(handleAjaxError);

            return false;
        });
    });
</script> -->


                                <!-- PAGE CONTENT ENDS -->
                            </div><!-- /.col -->
                        </div><!-- /.row -->
                    </div><!-- /.page-content-area -->
                </div><!-- /.page-content -->
            </div><!-- /.main-content -->

        </div><!-- /.main-container -->

        <!-- basic scripts -->

<!--         <script type="text/javascript">
            if('ontouchstart' in document.documentElement) document.write("<script src='http://novel.818tu.com/static/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
        </script> -->
        <script src="__PUBLIC__/admin/js/bootstrap.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.webui-popover.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.ui.widget.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.fileupload.min.js"></script>

        <!-- page specific plugin scripts -->

        <!-- ace scripts -->
        <script src="__PUBLIC__/admin/js/ace-elements.min.js"></script>
        <script src="__PUBLIC__/admin/js/ace.min.js"></script>

        <!-- inline scripts related to this page -->

        <!-- the following scripts are used in demo only for onpage help and you don't need them -->


       <!--  <script type="text/javascript"> ace.vars['base'] = 'http://novel.818tu.com/static'; </script> -->
        <script src="__PUBLIC__/admin/js/elements.onpage-help.js"></script>
        <script src="__PUBLIC__/admin/js/ace.onpage-help.js"></script>

        <script src="__PUBLIC__/admin/dataTables/jquery.dataTables.js"></script>
        <script src="__PUBLIC__/admin/dataTables/dataTables.bootstrap.js"></script>
            <script>
                $(document).ready(function () {
                    $('#dataTables-example').dataTable();
                });
        </script>
</body>
</html>
